<template>
  <div>
    <el-row :gutter="20">
      <el-col>
        <el-table
          :data="data"
          border
        >
          <el-table-column label="年份" prop="year" />
          <el-table-column label="最高分">
            <template slot-scope="scope">
              {{ scope.row.max }}
            </template>
          </el-table-column>
          <el-table-column label="最低分" prop="min" />
          <el-table-column label="最低位次" prop="rank" />
          <el-table-column label="录取人数" prop="num" />
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'ResultMajorTable',
  props: {
    data: {
      type: [Array],
      required: true
    }
  }
}
</script>

<style scoped>

</style>
